<?php echo form_open_multipart(uri_string())?>    
<script type="text/javascript">
	$(document).ready(function(){
		$( "#datepicker" ).datepicker();
		$("#tour_code").change(function(){
		 var tour_code=$(this).val();
		 $.ajax({
		   type : 'POST',
		   url : "<?php echo base_url()?>tour_buy/tour_price/"+tour_code,
		   data: {tour_code:tour_code},
		   type:"ajax",
		   success : function(data){
			 $("#tour_price").val(data);
		   }
		 })
		});
	});
 
</script>
    <table class="form">
      
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('bk.full_name');?></td>
            <td><input type="text" name="full_name" id="full_name" class="w300" value=""></td>
        </tr> 
         <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('bk.tell');?></td>
            <td><input type="text" name="tell" id="tell" class="w300" value=""></td>
        </tr> 
         <tr>
            <td class="required label" style="width: 150px;">Email</td>
            <td><input type="text" name="email" id="email" class="w300" value="">
            </td>
        </tr>
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('bk.city');?></td>
            <td> <select id="city_id" name="city_id" style="width:310px">
                    <option value=""> <?php echo lang('place_visit_select_city');?></option>
                    <?php echo $option_pid ?>
                </select>
          
            </td>
        </tr>
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('bk.address');?></td>
            <td><input type="text" name="address" id="address" class="w300" value="">
          
            </td>
        </tr>
         
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('bk.code');?></td>
            <td>
            <select id="tour_code" name="tour_code" style="width:310px"> 
            <option value=""> <?php echo lang('place_visit_select_city');?></option>
				<?php foreach($tougoodItems as $tourgoodItem){ ?>
                 <option value="<?php echo $tourgoodItem->tour_good_price_id ?>"> <?php echo $tourgoodItem->code ?></option>
                <?php } ?>     
               </select>
            </td>
        </tr>
         <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('bk.dt_start');?></td>
            <td><input type="text" name="dt_start" id="datepicker"  class="w300" value="">
          
            </td>
        </tr>
        
         <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('bk.price_tour');?></td>
            <td><input type="text" name="tour_price" id="tour_price" class="w300" value="" readonly>
          
            </td>
        </tr>
        <tr>
            <td class="required label" style="width: 150px;"><?php echo lang('bk.people_old');?></td>
            <td><input type="text" name="people_grown_up" id="people_grown_up" class="w300" value="">
          
            </td>
        </tr>
         <tr>
            <td class=" label" style="width: 150px;"><?php echo lang('bk.child');?></td>
            <td><input type="text" name="num_child" id="num_child" class="w300" value="">
          
            </td>
        </tr>
       
        
        <tr id="content">
            <td class=" label" style="width: 150px;"><?php echo lang('bk.note');?></td>
            <td>
                <textarea name="note" cols="70" rows="10"></textarea>
            </td>
        </tr>

        <tr>
            <td class="label"><?php echo lang('active_deactive');?></td>
            <td><input type="checkbox" name="bl_active" id="bl_active" checked  value="1"  onclick="setCheckboxValue(this);"></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="submit" name="bt_submit" value="" class="capnhat">
            </td>
        </tr>  
    </table>
<?php echo form_close()?>